// eslint-disable-next-line ts/no-namespace, unused-imports/no-unused-vars
declare namespace VAPI {
  // mock
  interface FormData {
    id: number
    ares: string
    account: string
    printmonth: string
    invoice: string
    amount: string
    printflag: string
    operator: string
    created: string
    billmonth: string
  }
  interface engineerFormData {
    id: number
    workmonth: string
    employeename: string
    employeeid: string
    reviewedhours: number
  }
  interface engineerDataItem {
    id: number
    workmonth: string
    employeename: string
    employeeid: string
    reviewedhours: number
  }
  interface FormResponseData {
    code: number
    data: FormData[]
    error: string
  }
  // 专票数据
  interface DataItem {
    key?: number
    id: number
    ares: string
    account: string
    printmonth: string
    invoice: string
    amount: string
    printflag: string
    operator: string
    created: string
    billmonth: string
    editing: boolean
  }
  interface DataResponse {
    code: number
    data: DataItem[]
    hint: string
    msg: string
    success: boolean
  }
  interface ColumnType {
    title: string
    dataIndex: string
    filters?: {
      text: string
      value: string
    }[]
    filterMultiple?: boolean
    onFilter?: (value: string, record: DataItem) => boolean
  }
}
